package com.weitu.majorHazard.assessmentReport.service;

import com.weitu.majorHazard.assessmentReport.entity.AssessmentReport;

import java.util.List;
import java.util.Map;

/**
 * Created by smp on 2017/4/24.
 */
public interface AssessmentReportService {
    /**
     * 列表总数
     * @param map
     * @return
     */
    int queryCount(Map<String,Object> map);

    /**
     * 分页列表
     * @param map
     * @return
     */
    List<AssessmentReport> queryList(Map<String,Object> map);

    /**
     * 插入报告列表
     * @param assessmentReport
     * @return
     */
    boolean insertAssessmentReport(AssessmentReport assessmentReport);
    /**
     * 通过id查询
     * @param id
     * @return
     */
    AssessmentReport queryAssessmentReportById(String id);
    /**
     * 修改
     * @param assessmentReport
     * @return
     */
    boolean updateAssessmentReport(AssessmentReport assessmentReport);
    /**
     * 删除
     * @param id
     * @return
     */
    int deleteAssessmentReport(String id);
}
